package com.easylinkin.linkappapi.grid.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.common.model.RequestModel;
import com.easylinkin.linkappapi.grid.entity.GridQrCode;
import com.easylinkin.linkappapi.grid.models.dto.GridQrCodeDTO;
import com.easylinkin.linkappapi.grid.models.dto.GridQrCodeRelationDTO;
import com.easylinkin.linkappapi.grid.models.query.GridQrCodeQuery;
import com.easylinkin.linkappapi.grid.models.query.GridQrCodeRecordQuery;
import com.easylinkin.linkappapi.grid.models.vo.GridQrCodeVO;
import site.morn.rest.RestMessage;

/**
 * 网格二维码管理 服务类
 *
 * @author 
 * @since 2024-05-27
 */
public interface IGridQrCodeService extends IService<GridQrCode> {

    RestMessage queryPageList(RequestModel<GridQrCodeQuery> requestModel);

    String createCode();

    RestMessage add(GridQrCodeDTO gridQrCodeDTO);

    RestMessage relevance(GridQrCodeRelationDTO gridQrCodeRelationDTO);

    RestMessage disassociate(String id);

    RestMessage getUseList(RequestModel<GridQrCodeRecordQuery> requestModel);

    RestMessage querySelectList();

    /**
     * 根据code查询二维码信息
     *
     * @param code
     * @return GridQrCodeVO
     * @author kyj
     * @date 2024/5/31 11:49
     */
    GridQrCodeVO getByCode(String code);
}